home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beginning Mac Programming
/
Beginning Mac Programming.bin
/
Open Me for REALbasic 3
/
REALbasic 3.2
/
Example Projects
/
Techniques
/
Examples by David Grogono
/
About the Code examples
next >
Wrap
Text File
|
2001-01-31
|
1KB
|
35 lines
Code examples by David Grogono:
Jan 30, 2001
These are examples are I made when I was teaching myself REALbasic.
I would probably do some things better and cleverer if I started from scratch,
but even as is the code will likely help demonstrate how to use certain features.
Polygon:
This is a fairly comprehensive example.
It just allows you to display a polygon and adjust attributes from a tool palette.
Things it does:
Multiple Documents with a windows menu
Seperate floating tool palette
Save, SaveAs, Open, New and double clicking of a saved file
Page Setup, Print
Copy, Paste, internally and pasting a picture to other apps
Multiple Undos and Redos (artifical limit of 100)
Drag and Drop from one window to another.
Drag a clipping to the desktop and back again (MacData is attached)
Multi Document:
Just a basic sample app for multiple Documents and a windows menu.
Calendar Window Example:
Demonstrates one way of calling another window and getting a result back.
PrimePanMagicSquares:
An example I wrote quickly to show my Dad how easy and powerful REALbasic is.
Window with breaking glass:
Probably the most fun of the examples, based on a trick from Matt Neuburg's
book on capturing screen pixels before the window is drawn. This trick did not
work on win32, so this example is Mac only.